export default {
  //删除消息
  del_news(state,index){
    const arr=[...state.newsLists]
    arr.splice(index,1)
    state.newsLists=arr
  },
  //点击已读
  read_news(state,index){
    state.newsLists[index].read=true
  },
  //全部已读
  all_read(state){
    state.newsLists.forEach(news=>news.read=true)
  }
}